package W;

public class Charconvert {
    public static void main(String[]args){
        String s=new String("I love China!");
        int i;

        char ch[]=new char[s.length()];
        s.getChars(0,s.length()-1,ch,0);

        for(i=0;i<s.length()-1;i++){

            if(Character.isLowerCase(ch[i]))
                Character.toUpperCase(ch[i]);
            else
            if(Character.isUpperCase(ch[i]))
                Character.toLowerCase(ch[i]);
        }
        System.out.println(String.valueOf(ch));

    }
}

